package com.suozq.springcloud.order.payment.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.suozq.springcloud.order.payment.service.PaymentOpenFeign;
import com.suozq.springcloud.order.payment.service.PaymentService;

@RestController
public class PaymentController {
	
	@Autowired
	PaymentService paymentService;
	
	@Autowired
	PaymentOpenFeign paymentOpenFeign;
	
	@GetMapping("/test")
	public String test() {
		return paymentService.test();
	}
	
	@GetMapping("/test-feign")
	public String testFeign() {
		return paymentOpenFeign.test();
	}
}
